//
//  SQLiteDataBaseManager.h
//  18-SQLite
//
//  Created by dllo on 16/8/8.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
@class Student;
NS_ASSUME_NONNULL_BEGIN
@interface SQLiteDataBaseManager : NSObject
{
    sqlite3 *dbPoint;
}
// 单例方法 一个工程中只包含这一个对象
+ (SQLiteDataBaseManager *)shareManager;
- (BOOL)openSQLite3;
- (BOOL)closeSQLite3;
- (BOOL)creatTable;
- (BOOL)insertStu:(Student *)stu;
- (BOOL)deleteStu:(Student *)stu;
- (BOOL)deleteAll;
- (BOOL)updateOldName:(NSString *)oldName
              newName:(NSString *)newName;
- (__kindof NSArray *)selectAll;
@end
NS_ASSUME_NONNULL_END
